<%@page import="java.util.ArrayList"%>
<%@page import="classes.Reports"%>
<script type="text/javascript" >
    function success(){
            alert("Change has been successfully made.");
        }
</script>
<form method="post" action="setshareprice.html">
            <fieldset>
        <%
            Reports.getConnection("SELECT * FROM brchung.stock;");
            ArrayList<String[]> rs=Reports.getResults(1,4);
            for(int i=0;i<rs.size();i++)
            {
                out.print("<label for=\""+rs.get(i)[0]+"\">"+rs.get(i)[0] +": </label>");
                out.print("<input type=\"text\" size=\"6\" name=\""+rs.get(i)[0]+"\" value=\""+rs.get(i)[1]+"\"/>"+"<br/>");
            }
        %>
        <div style="padding: 6px;text-align: center"><input id="submit" type="submit" Value="Change" onclick ="success()"/></div>
            </fieldset>
</form>